def common_assert(resp,status_code,success,code,message):
    assert status_code == resp.status_code
    assert success is resp.json().get("success")
    assert code == resp.json().get("code")
    assert message in resp.json().get("message")

def com_assert(resp,status_code,status,msg):
    assert status_code == resp.status_code
    assert status == resp.json().get("status")
    assert msg in resp.json().get("msg")